<%@ page import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看课程详情</title>
<script language="javascript" type="text/javascript">
	function dis() {
		var div1 = document.getElementById("div1");
		var div2 = document.getElementById("div2");
		div1.style.display = "none";
		div2.style.display = "inherit";
	}
</script>
</head>

<body>
	<div id="div1" style="display:inherit">
		课程名称：${teacher.course.cname }<br /> 教师名称：${teacher.tname }<br />
		真实姓名：${teacher.trealname }<br /> 邮箱：${teacher.tmail }<br /> <input
			type="button" onclick="dis()" value="编辑" />&nbsp;<input
			type="button" value="返回" onclick="history.back()" />
	</div>
	<div style="display:none" id="div2">
		<form action="updateTeacher" method="post">
			<input type="hidden" name="teacher.tid" value="${teacher.tid }" />
			课程名称： <select name="teacher.course.cid">
				<c:forEach items="${courseL }" var="course">
					<option value="${course.cid }"
						<c:if test="${teacher.course.cid==course.cid }">selected="selected"</c:if>>${course.cname}</option>
				</c:forEach>
				</select><br /> 
			教师名称：<input type="text" value="${teacher.tname }"
				name="teacher.tname" /><br /> 密码：<input type="text"
				value="${teacher.tpassword }" name="teacher.tpassword" /><br />
			真是姓名：<input type="text" value="${teacher.trealname }"
				name="teacher.trealname" /><br /> 邮箱：<input type="text"
				value="${teacher.tmail }" name="teacher.tmail" /><br /> <input
				type="submit" value="提交" />&nbsp;<input type="button" value="返回"
				onclick="history.back()" />
		</form>
	</div>
</body>
</html>
